#ifndef BULLET_H
#define BULLET_H

#include "CBase.h"
#include "Messaging\IListener.h"

class CBullet : public CBase, public IListener
{
private:
	float m_fRotation;
	CBase* m_pOwner;
	int m_nLazerHit;

public:
	CBullet();
	~CBullet();

	void SetOwner(CBase* _pOwner);
	CBase* GetOwner(){return m_pOwner;}
	void Update(float _fElapsedTime);
	void Render();
	bool CheckCollision(IBaseInterface *_pIBase);
	RECT GetCollisonRect();

	void SetRotation( float _fRot) { m_fRotation = _fRot; }
	
	void HandleEvent(CEvent* pEvent);
};

#endif